create or replace package pk_http is

  -- Author  : RELAXIMUS
  -- Created : 05.12.2013 20:58:56
  -- Purpose : lowest level of http servies
  
  -- type of headers http requests
  type THeaders is table of varchar2(2000) INDEX by varchar2(100);
  -- dummy var
  g_dummy_headers THeaders;

  -- Public function and procedure declarations
  function request(a_adress varchar2,aa_headers THeaders DEFAULT g_dummy_headers, a_msg varchar2 DEFAULT NULL) return varchar2;

end pk_http;
/
create or replace package body pk_http is

  -- Private type declarations
  type <TypeName> is <Datatype>;
  
  -- Private constant declarations
  <ConstantName> constant <Datatype> := <Value>;

  -- Private variable declarations
  <VariableName> <Datatype>;

  -- Function and procedure implementations
  function <FunctionName>(<Parameter> <Datatype>) return <Datatype> is
    <LocalVariable> <Datatype>;
  begin
    <Statement>;
    return(<Result>);
  end;

begin
  -- Initialization
  <Statement>;
end pk_http;
/
